<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'qvvalues-form',
	'enableAjaxValidation'=>false,
)); ?>

	<?php echo $form->errorSummary($model); ?>

        <?php echo $form->hiddenField($model,'qvf_id'); ?>
        <?php echo $form->error($model,'qvf_id'); ?>

    <fieldset>
        <legend><?php echo $form->labelEx($model,'qvv_fieldValue'); ?></legend>
        <table>
            <tr class="row">
                    <td>
                        <?php echo $form->textField($model,'qvv_fieldValue',array('size'=>14,'maxlength'=>150)); ?>
                        <?php echo $form->error($model,'qvv_fieldValue'); ?>
                    </td>
                    <td>
                        <?php echo CHtml::ajaxButton('add',
                            CHtml::normalizeUrl(array('//qvvalues/ajaxupdate')),
                                array(
                                    'type'=>'POST',
                                    'success'=>'function(responseText,statusText) {
                                                    $("#Notification").jnotifyAddMessage({
                                                                text: "added QV Value...",
                                                                permanent: false,
                                                                showIcon: true
                                                    });
                                                    jQuery("#id_from_values").html(responseText);
                                                }',
                                ),
                                array('class'=>'ui-button ui-widget ui-state-default ui-corner-all','id'=>'value_save_button'));
                        ?>
                    </td>
            </tr>
        </table>
    </fieldset>

<?php $this->endWidget(); ?>

</div><!-- form -->

<?php
$this->widget('ext.ajaxform.JAjaxForm',array(
    'formId'=>'qvvalues-form',
    'options'=>array(
        'dataType'=>'json',
    ),
));
?>